package world.liquor.domain;

import java.util.ArrayList;

public class BeerInfo {
	private String beerInfoId;
	private String beerInfoName;
	private String beerInfoEngName;
	private String alcohol;
	private int price;
	private String manufacturer;
	private String country;
	
	private int sweetness;
	private int bitters;
	private int sensationOfRefreshment;
	private int color;
	
	private String imageUrl;
	
	public BeerInfo() {
	}

	public BeerInfo(String beerInfoId, String beerInfoName,
			String beerInfoEngName, String alcohol, int price,
			String manufacturer, String country, int sweetness, int bitters,
			int sensationOfRefreshment, int color, String imageUrl) {
		super();
		this.beerInfoId = beerInfoId;
		this.beerInfoName = beerInfoName;
		this.beerInfoEngName = beerInfoEngName;
		this.alcohol = alcohol;
		this.price = price;
		this.manufacturer = manufacturer;
		this.country = country;
		this.sweetness = sweetness;
		this.bitters = bitters;
		this.sensationOfRefreshment = sensationOfRefreshment;
		this.color = color;
		this.imageUrl = imageUrl;
	}

	public String getBeerInfoId() {
		return beerInfoId;
	}

	public void setBeerInfoId(String beerInfoId) {
		this.beerInfoId = beerInfoId;
	}

	public String getbeerInfoName() {
		return beerInfoName;
	}

	public void setbeerInfoName(String beerInfoName) {
		this.beerInfoName = beerInfoName;
	}

	public String getBeerInfoEngName() {
		return beerInfoEngName;
	}

	public void setBeerInfoEngName(String beerInfoEngName) {
		this.beerInfoEngName = beerInfoEngName;
	}

	public String getAlcohol() {
		return alcohol;
	}

	public void setAlcohol(String alcohol) {
		this.alcohol = alcohol;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public int getSweetness() {
		return sweetness;
	}

	public void setSweetness(int sweetness) {
		this.sweetness = sweetness;
	}

	public int getBitters() {
		return bitters;
	}

	public void setBitters(int bitters) {
		this.bitters = bitters;
	}

	public int getSensationOfRefreshment() {
		return sensationOfRefreshment;
	}

	public void setSensationOfRefreshment(int sensationOfRefreshment) {
		this.sensationOfRefreshment = sensationOfRefreshment;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	@Override
	public String toString() {
		return "BeerInfo [beerInfoId=" + beerInfoId + ", beerInfoName="
				+ beerInfoName + ", beerInfoEngName=" + beerInfoEngName
				+ ", alcohol=" + alcohol + ", price=" + price
				+ ", manufacturer=" + manufacturer + ", country=" + country
				+ ", sweetness=" + sweetness + ", bitters=" + bitters
				+ ", sensationOfRefreshment=" + sensationOfRefreshment
				+ ", color=" + color + ", imageUrl=" + imageUrl + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((alcohol == null) ? 0 : alcohol.hashCode());
		result = prime * result
				+ ((beerInfoEngName == null) ? 0 : beerInfoEngName.hashCode());
		result = prime * result
				+ ((beerInfoId == null) ? 0 : beerInfoId.hashCode());
		result = prime * result
				+ ((beerInfoName == null) ? 0 : beerInfoName.hashCode());
		result = prime * result + bitters;
		result = prime * result + color;
		result = prime * result + ((country == null) ? 0 : country.hashCode());
		result = prime * result
				+ ((imageUrl == null) ? 0 : imageUrl.hashCode());
		result = prime * result
				+ ((manufacturer == null) ? 0 : manufacturer.hashCode());
		result = prime * result + price;
		result = prime * result + sensationOfRefreshment;
		result = prime * result + sweetness;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		BeerInfo other = (BeerInfo) obj;
		if (alcohol == null) {
			if (other.alcohol != null)
				return false;
		} else if (!alcohol.equals(other.alcohol))
			return false;
		if (beerInfoEngName == null) {
			if (other.beerInfoEngName != null)
				return false;
		} else if (!beerInfoEngName.equals(other.beerInfoEngName))
			return false;
		if (beerInfoId == null) {
			if (other.beerInfoId != null)
				return false;
		} else if (!beerInfoId.equals(other.beerInfoId))
			return false;
		if (beerInfoName == null) {
			if (other.beerInfoName != null)
				return false;
		} else if (!beerInfoName.equals(other.beerInfoName))
			return false;
		if (bitters != other.bitters)
			return false;
		if (color != other.color)
			return false;
		if (country == null) {
			if (other.country != null)
				return false;
		} else if (!country.equals(other.country))
			return false;
		if (imageUrl == null) {
			if (other.imageUrl != null)
				return false;
		} else if (!imageUrl.equals(other.imageUrl))
			return false;
		if (manufacturer == null) {
			if (other.manufacturer != null)
				return false;
		} else if (!manufacturer.equals(other.manufacturer))
			return false;
		if (price != other.price)
			return false;
		if (sensationOfRefreshment != other.sensationOfRefreshment)
			return false;
		if (sweetness != other.sweetness)
			return false;
		return true;
	}

	


	
	
	
}
